package com.antd.common.sms.fegin.factory;

import com.antd.common.sms.fegin.RemoteSmsLogService;
import com.antd.common.sms.fegin.fallback.RemoteSmsLogFallBack;
import feign.hystrix.FallbackFactory;
import org.springframework.stereotype.Component;

/**
 * TODO
 *
 * @author 子丶沫
 * @version 1.0
 * @date 2020/12/2 14:33
 */
@Component
public class RemoteSmsLogFactory implements FallbackFactory<RemoteSmsLogService> {
    @Override
    public RemoteSmsLogService create(Throwable throwable) {
        return new RemoteSmsLogFallBack(throwable);
    }
}
